function [LT] = LocTime(UT, lon)
%
% Local Time Computation
%
%DESCRIPTION:
%This function computes the Local Time (LT)
%
%PROTOTYPE:
% [LT] = LocTime(UT, lon)
%
%--------------------------------------------------------------------------
% INPUTS:
%   UT         [1x1]       Universal Time            [hours]
%   lon        [1x1]       Location Longitude        [deg]
%--------------------------------------------------------------------------
% OUTPUTS:
%   LT         [1x1]       Local Time                [hours]
%--------------------------------------------------------------------------
%
%NOTES:
% (none)
%
%CALLED FUNCTIONS:
% (none)
%
%UPDATES:
% (none)
%
%REFERENCES:
% [2] "Electron Density Models and Data for Transionospheric Radio
%      Propagation" - Report ITU-R P.2297-1 (05/2019)
%
%AUTHOR(s):
%Luigi De Maria, Matteo D'Addazio, 2022
%

%% Main Code

%Local Time
LT = UT + lon/15;

if     LT < 0
    LT = LT + 24;
elseif LT >= 24
    LT = LT - 24;
end

end
